package org.hyson.gofun;

import android.app.Activity;
import android.os.Bundle;
import android.widget.Button;

import android.content.Intent;

import android.view.View;
import android.view.View.OnClickListener;

public class GoFun extends Activity implements OnClickListener{
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        Button btn = (Button)findViewById(R.id.new_btn);
        btn.setOnClickListener(this);
    }
   // @Override
    public void onClick(View v) {
            switch(v.getId()){
                    case R.id.new_btn:
                            startGame();
                            break; 
                    case R.id.continue_btn:
                    		break;
                    case R.id.help_btn:
                    		break;
                    case R.id.level_btn:
                    		break;
                    case R.id.exit_btn:
                    		finish();
                    default:
                            break;
            }
    }
    public void startGame(){
            Intent i =  new Intent(this, Game.class);
            startActivity(i);
    }
}
